﻿using PaperMaster.Model;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace PaperMaster.Chess.CardSpace
{
    public class PileViewController : MonoBehaviour
    {
        public static PileController GetController()
        {
            GameObject board = GameObject.Find("Piles");
            if (board != null)
            {
                return board.GetComponent<PileViewController>().controller;
            }
            return null;
        }
        public PileController controller;
        private void Awake()
        {
            controller = new PileController();
        }
        // Start is called before the first frame update
        void Start()
        {

        }

        // Update is called once per frame
        void Update()
        {
            if (Input.GetKeyDown(KeyCode.Alpha0))
            {
                controller.PlayHandCard(0);
            }
        }
    }
}
